<?php

require_once 'classes/integration/DataSourceFactory.class.php';
require_once 'classes/data/UserDAO.class.php';

/**
 * * <description>
 *
 * @author      John J. GARCIA  <j.garcia_fernandez@fotovista.com>
 * @date        <date>
 */
class User
{
    
    public function checkLogin($sLogin, $sPassw)
    {
        $connection = & DataSourceFactory::getInstance()->getConnection();
        //$dao        = $this->getDaoFactory()->getAdminCE($connection);
        $dao = new \UserDAO($connection);
        
        return $dao->findByLogin($sLogin, $sPassw);
    }
}

?>
